import Vue from 'vue'
import Vuex from 'vuex'
import {fmtDate, formatDate, getWeek} from '../utils/utils'
import * as getters from './getters'
import mutations from './mutations'
import actions from './actions'

Vue.use(Vuex)

const state = {
  token: '',
  showFooter: true,//是否展示顶部Tab菜单
  selectTime: fmtDate(new Date()),//座位预订当前选中的时间 默认为当前时间
  isLoading: false,//路由动画
  selectCoupon: {},//选中的优惠券
  isOrdering: false,//是否用正在进行的订单
  RechargeInfo: '',//充值介绍
  MealList: [],//套餐列表
  userinfo: {},//用户信息
  sysMes: {},//详细详情
  MoneyMes: {},//充值消息详情
  CheckSeatList: [],//选中的座位
}

export default new Vuex.Store({
  state,
  actions,
  getters,
  mutations
})
